package com.scwatch.core.repository;

import com.scwatch.common.orm.Limitable;
import com.scwatch.core.domain.Sinatv;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.domain.Specification;
import org.springframework.data.repository.Repository;

import java.util.List;

/**
 * Created by rh005 on 2017/7/17.
 */
public interface SinatvDao extends Repository<Sinatv, Integer> {
    public Page<Sinatv> findAll(Specification<Sinatv> spec,
                                 Pageable pageable);

    public List<Sinatv> findAll(Specification<Sinatv> spec,
                                 Limitable limitable);

    public Sinatv findOne(Integer id);

    public Sinatv save(Sinatv bean);

    public void delete(Sinatv bean);

    public List<Sinatv> findByStatus(int status);
}
